<form class="form-horizontal form-modal" method="post" enctype="multipart/form-data" id="editForm">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">
                    <span aria-hidden="true">&times;</span>
                    <span class="sr-only">Close</span>
                </button>
                <h4 class="modal-title">编辑标签</h4>
            </div>
            <div class="modal-body">
                <div class="row">
                    <div class="col-lg-12">

                        <div class="form-group row">
                            <label class="col-sm-2 col-form-label">名称 ：</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" name="name" value="{$info->name}">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>

                        <div class="form-group row">
                            <label class="col-sm-2 col-form-label">排序 ：</label>
                            <div class="col-sm-10">
                                <input type="number" class="form-control" name="sort" value="{$info->sort}">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>

                        <div class="form-group row">
                            <label class="col-sm-2 col-form-label">状态 ：</label>
                            <div class="col-sm-10">
                                <label class="lab-radio">
                                    <input type="radio" value="1" name="status" {if $info->status == '1'} checked {/if}>显示
                                </label>
                                <label class="lab-radio">
                                    <input type="radio" value="0" name="status" {if $info->status == '0'} checked {/if}>隐藏
                                </label>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="modal-footer">
                <button type="button" class="btn btn-white" data-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-primary" onclick="post_form($(this),'{$Think.config.admin.app_host}/admin/label/{$info->id}')">保存
                </button>
            </div>
        </div>
    </div>
</form>

<script>
    $(function () {
        $('.chosen-select').chosen({width: "100%"});
    })
</script>
